package ooday02;

public class person {
    int age;
    String name;
    String address;

   person(String name, String address, int age) {
       this.age=age;
       this.name=name;
       this.address=address;
    }

    void eat(){
        System.out.println(name+"正在吃饭");
    }
    void sleep(){
        System.out.println(name+"正在睡觉");

    }
    void sayhi(){
        System.out.println("大家好我是"+name+"今年"+age+"家住"+address);

    }


}




